package com.lihepeng.leecode.design_patten.simple_factory;

public class CrouseFactory {

    public ICrouse create(Class clazz) {
        try {
            return (ICrouse) clazz.newInstance();
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }
        return null;
    }

}
